<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:p="http://primefaces.org/ui"
  xmlns:f="http://java.sun.com/jsf/core">
<f:view contentType="text/html" locale="#{localeBean.locale}">
  <h:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Exemple</title>
    <h:outputStylesheet library="css" name="stylesheet.css" />
  </h:head>
  <h:body>
	    <div id="top">
	      <ui:insert name="top">
	      	<ui:include src="top.xhtml"></ui:include>
	      </ui:insert>
	    </div>
	    <div id="left">
	      <ui:insert name="left" />
	    </div>
	    <div id="content" class="back">
  			<h:panelGroup rendered="${(clientController.loggedIn == true) and (clientController.currentClient.role == 1)}">
	     		<ui:insert name="content"/>
	     	</h:panelGroup>
	     	<h:panelGroup rendered="${(clientController.loggedIn == false) or (clientController.currentClient.role != 1)}">
	   			<h1><h:outputText value="Vous n'êtes pas autorisé à voir cette page."/></h1>
    		</h:panelGroup>
	    </div>
  </h:body>
</f:view>
</html>
